{% extends "control/base.html" %}
{% load i18n %}
{{form.media}}
{% load adminmedia %}
{% block extrahead %}
<script type="text/javascript">
window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";
</script>

<script type="text/javascript" src="/admin/jsi18n/"></script> 

<script type="text/javascript" src="/static/django/js/core.js"></script>
<script type="text/javascript" src="/static/django/js/admin/RelatedObjectLookups.js"></script>
<script type="text/javascript" src="/static/django/js/calendar.js"></script>
<script type="text/javascript" src="/static/django/js/admin/DateTimeShortcuts.js"></script>
<link rel="stylesheet" type="text/css" href="/static/django/css/forms.css"/>
<link rel="stylesheet" type="text/css" href="/static/django/css/base.css"/>
<link rel="stylesheet" type="text/css" href="/static/django/css/widgets.css"/>
{% endblock %}
{%block content%}


<div id="tab">
	<form method="POST" enctype="multipart/form-data">
		{% csrf_token %}
		<div id="stock">
			<h1><center>Por favor cargar el peso promedio del artículo</center></h1>
			<table>
				{% for field in form %}
					{% if field.label == 'Plazo' or field.label == 'Fecha' %}
						<tr>
						<td>
							{{ field.errors }}
							{{ field.label }}
							{{ field }}
						</td>
						</tr>
					{% else %}
						{% if field.label == 'Nombre' or field.label == 'Detalle' or field.label == 'Articulo' or field.label == 'Cantidad' or field.label == 'Stock' or field.label == 'Despachado' %}
						{% else %}
							<tr>
							<td>
								{{ field.errors }}
								{{ field.label }}
								{{ field }}
							</td>
							</tr>
						{% endif %}
					{% endif %}
				<!--<td>{{form.as_table}}</td>-->
				{% endfor %}
			</table>
		</div>
		
		<input type="submit" class="find_link" value="Guardar" />
		
	</form>

</div>

{%endblock%}
